package com.mytx.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Coupon {
    private String id;

    private String uId;

    private String tId;

    private String parentId;//一对多红包，父红包Id

    private Integer totalCount;//一对多红包 总数

    private Integer receivedCount;//一对多红包 接收数量

    private String outRequestNo;

    private BigDecimal amount;

    private BigDecimal balance;//一对多红包，剩余未领取的金额

    private String authNo;

    private String operationId;

    private LatLng location;

    private Integer status;

    private Integer type;


    private String greeting;

    private User targetUser;
    private String liveRoomId;//依附的直播间id，用于红包被领完的时候去清除主题里面的红包

    private String topicId;//依附的主题id,用于红包被领完的时候去清除主题里面的红包

    private Date expiryDate;

    private Date updated;

    private Date created;

    public String getGreeting() {
        return greeting;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }

    public User getTargetUser() {
        return targetUser;
    }

    public void setTargetUser(User targetUser) {
        this.targetUser = targetUser;
    }

    public String getLiveRoomId() {
        return liveRoomId;
    }

    public void setLiveRoomId(String liveRoomId) {
        this.liveRoomId = liveRoomId;
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }



    public Coupon(String id, String uId, String tId, String parentId, Integer totalCount, Integer receivedCount, String outRequestNo, BigDecimal amount, BigDecimal balance, String authNo, String operationId, LatLng location, Integer status, Integer type, Date expiryDate, Date updated, Date created) {
        this.id = id;
        this.uId = uId;
        this.tId = tId;
        this.parentId = parentId;
        this.totalCount = totalCount;
        this.receivedCount = receivedCount;
        this.outRequestNo = outRequestNo;
        this.amount = amount;
        this.balance = balance;
        this.authNo = authNo;
        this.operationId = operationId;
        this.location = location;
        this.status = status;
        this.type = type;
        this.expiryDate = expiryDate;
        this.updated = updated;
        this.created = created;
    }

    public Coupon() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId == null ? null : uId.trim();
    }

    public String gettId() {
        return tId;
    }

    public void settId(String tId) {
        this.tId = tId == null ? null : tId.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getReceivedCount() {
        return receivedCount;
    }

    public void setReceivedCount(Integer receivedCount) {
        this.receivedCount = receivedCount;
    }

    public String getOutRequestNo() {
        return outRequestNo;
    }

    public void setOutRequestNo(String outRequestNo) {
        this.outRequestNo = outRequestNo == null ? null : outRequestNo.trim();
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getAuthNo() {
        return authNo;
    }

    public void setAuthNo(String authNo) {
        this.authNo = authNo == null ? null : authNo.trim();
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId == null ? null : operationId.trim();
    }

    public LatLng getLocation() {
        return location;
    }

    public void setLocation(LatLng location) {
        this.location = location;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

}